package com.bw.car_module.carlist;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface ApiService {

    //添加购物车
    @POST("cart/add")
    Observable<AddCartEntity>requestAddCart(@Body RequestBody body);
    //删除购物车
    @POST("cart/delete")
    Observable<DelCartEntity>requestDelCart(@Body RequestBody body);
    //查询购物车
    @POST("cart/getList")
    Observable<CartEntity>requestSelCart(@Body RequestBody body);
    //提交购物车
    @POST("cart/submit")
    Observable<SubmitCartEntity>requestSubmitCart(@Body RequestBody body);
}
